package com.xxgc.qinglian.qinglianserver.entity;/*
 * @Author:lsx
 * @Date:2025/6/9--06--09--20:40
 *
 */

import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;
import org.dromara.autotable.annotation.ColumnComment;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;
import org.dromara.mpe.autotable.annotation.ColumnId;
import org.dromara.mpe.autotable.annotation.Table;
import org.dromara.mpe.processer.annotation.AutoDefine;
import org.dromara.mpe.processer.annotation.AutoMapper;
import org.dromara.mpe.processer.annotation.AutoRepository;

import java.time.LocalDateTime;

@AutoDefine
@AutoMapper
@AutoRepository
@Data
@Table(value = "qinglian_vote_record", comment = "投票记录表")
public class VoteRecordEntity {
    @ColumnComment("记录id")
    @ColumnId(mode = IdType.AUTO, comment = "记录主键", type = MysqlTypeConstant.BIGINT, length = 32)
    private int recordId;

    @ColumnComment("投票id")
    private int voteId;

    @ColumnComment("项目id")
    private int projectId;

    @ColumnComment("用户id")
    private int userId;

    @ColumnComment("投票时间")
    private LocalDateTime voteTime;

    @ColumnComment("票数")
    private Integer votes;
}
